package com.onluy.frameworkcloud.Param;

import io.swagger.annotations.ApiModelProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

public class ReqInfo<T,E> {
    protected Logger log =   LoggerFactory.getLogger(this.getClass());


    @ApiModelProperty(value="请求头" )
    @Valid
    @NotNull
    private T reqHead  ;

    @ApiModelProperty(value="请求体" )
    @Valid
    @NotNull
    private E  reqBody ;


    public T getReqHead() {
        return reqHead;
    }

    public void setReqHead(T reqHead) {
        this.reqHead = reqHead;
    }

    public E getReqBody() {
        return reqBody;
    }

    public void setReqBody(E reqBody) {
        this.reqBody = reqBody;
    }


}
